package com.longer.playhelper.view.activity;

import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.longer.playhelper.R;
import com.longer.playhelper.utlis.GlideCircleTransform;
import com.longer.playhelper.utlis.Toast;

import butterknife.Bind;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class HelpMy_Activity extends AppCompatActivity {

    public Context context;
    @Bind(R.id.toolbar)
    Toolbar toolbar;
    @Bind(R.id.iv_myhelp_headpic)
    ImageView ivMyhelpHeadpic;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_myhelp);
        ButterKnife.bind(this);

        toolbar.setTitle("我的互帮互助");
        setSupportActionBar(toolbar);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            public void onClick(View v) {
                finish();
            }
        });
        inti();
    }

    public void inti() {
        context = HelpMy_Activity.this;

        Glide.with(context)
                .load(R.drawable.head_boy).centerCrop()
                .transform(new GlideCircleTransform(context, 1, context.getResources().getColor(R.color.white)))
                .diskCacheStrategy(DiskCacheStrategy.SOURCE)
                .into(ivMyhelpHeadpic);
    }


    @OnClick({R.id.ll_qz, R.id.ll_fw, R.id.card_user_infor, R.id.card_help})
    public void onViewClicked(View view) {
        Toast.show("功能建设中！");
        switch (view.getId()) {
            case R.id.ll_qz:
                break;
            case R.id.ll_fw:
                break;
            case R.id.card_user_infor:
                break;
            case R.id.card_help:
                break;
        }
    }
}
